document.getElementById('clickItemsBtn').addEventListener('click', () => {
  chrome.tabs.query({active: true, currentWindow: true}, (tabs) => {
    if (tabs[0]) {
      document.getElementById('status').textContent = '开始点击列表项...';
      chrome.tabs.sendMessage(tabs[0].id, {action: "click_items"});
    }
  });
});
